package com.zt.location.modules.base.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.zt.location.modules.base.dao.WorkergroupDao;
import com.zt.location.modules.base.entity.WorkergroupEntity;
import com.zt.location.modules.base.service.WorkergroupService;



@Service("workergroupService")
public class WorkergroupServiceImpl implements WorkergroupService {
	@Autowired
	private WorkergroupDao workergroupDao;
	
	@Override
	public WorkergroupEntity queryObject(Integer id){
		return workergroupDao.queryObject(id);
	}
	
	@Override
	public List<WorkergroupEntity> queryList(Map<String, Object> map){
		return workergroupDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return workergroupDao.queryTotal(map);
	}
	
	@Override
	public void save(WorkergroupEntity workergroup){
		workergroupDao.save(workergroup);
	}
	
	@Override
	public void update(WorkergroupEntity workergroup){
		workergroupDao.update(workergroup);
	}
	
	@Override
	public void delete(Integer id){
		workergroupDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		workergroupDao.deleteBatch(ids);
	}
	
}
